package com.doyens.reggie.commons;

public class BaseContext {
    private static ThreadLocal<Long> tl = new ThreadLocal<>();

    // 绑定值的方法
    public static void setCurrentId(Long id){
        tl.set(id);
    }
    // 取值值的方法
    public static Long getCurrentId(){
        Long id = tl.get();
        return id;
    }
}
